package moc.type.object;

public class Pointcol extends Point {

	
	private int col ;
	

	public Pointcol(int x, int y, int col) {
		super(x, y);
		this.col = col;
	}
	

	public int getCol() {
		return col;
	}


	public void setCol(int col) {
		this.col = col;
	}


	@Override
	public void debug(){
		System.out.println("point coloré") ;
	}
	
	

	public static void main(String[] args) {
		Pointcol pc = new Pointcol(0,0,0) ;
		Point p = pc ;	
		p.debug(); 
		
		((Pointcol)p).getCol() ;
	}

}
